﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Enferno.Public.Web.Components.Server.ViewModels;

namespace Enferno.Public.Web.Components.Test.Server
{
    public class TestModels
    {
        public CheckoutBuyerViewModel GetAnonymousBuyer()
        {
            return new CheckoutBuyerViewModel
            {
                CellPhone = "0708915256",
                CustomerId = null,
                Email = "tomas@isby.se",
                FirstName = "Tomas",
                LastName = "Isby",
                Phone = null
            };
        }
        public CheckoutBuyerViewModel GetAnonymousBuyerWithoutEmailPhone()
        {
            return new CheckoutBuyerViewModel
            {
                CellPhone = null,
                CustomerId = null,
                Email = null,
                FirstName = "Tomas",
                LastName = "Isby",
                Phone = null
            };
        }

        public CheckoutPrivatePayerViewModel GetAnonymousPrivatePayer()
        {
            return new CheckoutPrivatePayerViewModel
            {
                SocialSecurityNumber = "1234567890",
                PersonInformation = new PersonInformationViewModel
                {
                    FirstName = "Bill",
                    LastName = "Payer",
                    Email = "bill.payer@gmail.com",
                    Phone = null,
                    CellPhone = "0704674139"
                },
                InvoiceAddress = new AddressViewModel
                {
                    CareOf = null,
                    City = "Stockholm",
                    Country = "SE",
                    CountryId = 1,
                    Line1 = "Karlbergsvägen 76",
                    Line2 = null,
                    Zip = "11335"
                }
            };
        }

        public CheckoutPrivateShipToViewModel GetAnonymousPrivateShipTo()
        {
            return new CheckoutPrivateShipToViewModel
            {
                CustomerId = null,
                PersonInformation = new PersonInformationViewModel
                {
                    FirstName = "Sid",
                    LastName = "Shipper",
                    Email = "sid.shipper@gmail.com",
                    Phone = null
                },
                DeliveryAddress = new AddressViewModel
                {
                    CareOf = "",
                    City = "Tungelsta",
                    Country = "SE",
                    CountryId = 1,
                    Line1 = "Vedahöjden 76",
                    Line2 = "",
                    Zip = "13793"
                }
            };
        }

        public CheckoutCompanyPayerViewModel GetAnonymousCompanyPayer()
        {
            return new CheckoutCompanyPayerViewModel
            {
                OrganisationNumber = "5566961867",
                CompanyInformation = new CompanyInformationViewModel
                {
                    Name = "Enferno AB",
                    Phone = null
                },
                InvoiceAddress = new AddressViewModel
                {
                    CareOf = null,
                    City = "Stockholm",
                    Country = "SE",
                    CountryId = 1,
                    Line1 = "Karlbergsvägen 76",
                    Line2 = null,
                    Zip = "11335"
                }
            };
        }

        public CheckoutCompanyShipToViewModel GetAnonymousCompanyShipTo()
        {
            return new CheckoutCompanyShipToViewModel
            {
                CompanyCode = null,
                CompanyId = null,
                CustomerId = null,
                OrganisationNumber = null,

                CompanyInformation = new CompanyInformationViewModel
                {
                    Name = "Iceagent AB",
                    Phone = null
                },
                DeliveryAddress = new AddressViewModel
                {
                    CareOf = "",
                    City = "Tungelsta",
                    Country = "SE",
                    CountryId = 1,
                    Line1 = "Vedahöjden 76",
                    Line2 = "",
                    Zip = "13793"
                }
            };
        }
    }
}
